//处理状态
export function procflgPige(value){
    var temp ='';
    if(value == '1'){
        temp = '建档'
    } else if(value == '2'){
        temp = '核保'
    } else if(value == '3'){
        temp = '照会'
    } else if(value == '4'){
        temp = '核决'
    } else if(value == '5'){
        temp = '未入账'
    } else if(value == '6'){
        temp = '结案'
    } else if(value == '0'){
        temp = '受理'
    }
    return temp
}

//缴别
export function billfreqPige(value){
    var temp ='';
    if(value == '00'){
        temp = '趸缴'
    } else if(value == '01'){
        temp = '年缴'
    } else if(value == '02'){
        temp = '半年缴'
    } else if(value == '04'){
        temp = '季缴'
    } else if(value == '12'){
        temp = '月缴'
    }
    return temp
}

//体检别
export function mmflgPige(value){
    var temp ='';
    if(value == 'O'){
        temp = '病史件'
    } else if(value == 'N'){
        temp = '免体检件'
    } else if(value == 'M'){
        temp = '体检件'
    } else if(value == 'R'){
        temp = '抽检件'
    }
    return temp
}

//体检别
export function approvalPige(value){
    var temp ='';
    if(value == 'S'){
        temp = '标准体'
    } else if(value == 'A'){
        temp = '次标准体'
    } else if(value == 'D'){
        temp = '拒保'
    } else if(value == 'P'){
        temp = '延期'
    } else if (value == "W") {
        temp = "取消";
    } else if (value == "") {
        temp = "未核决";
    } else if (value == null || value == 'null') {
        temp = "";
    }

    return temp
}

//处理状态
export function trectypPipe(value){
    var temp ="";
    if(value == 'A'){
        temp = 'A - 撤回'
    } else if(value == 'B'){
        temp = 'B - 结案失败'
    } else if(value == 'C'){
        temp = 'C - 照会逾期未回复'
    } else if(value == 'D'){
        temp = 'D - 特殊件照会回复待处理'
    } else if (value == "0") {
        temp = "0 - 待处理保单";
    } else if (value == "1") {
        temp = "1 - 受理";
    } else if (value == "2") {
        temp = "2 - 核保";
    }else if (value == "5") {
        temp = "5 - 照会中";
    }else if (value == "6") {
        temp = "6 - 照会已回复待处理";
    }else if (value == "7") {
        temp = "7 - 送其他部门处理";
    }else if (value == "9") {
        temp = "9 - 结案";
    }
    return temp
}

//资料归属
export function busiTypePipe(value){
    var temp ="";
    if(value == 'NB'){
        temp = '投保'
    } else if(value == 'POS'){
        temp = '保全'
    } else if(value == 'CLM') {
        temp = '理赔'
    }
    return temp
}
export function cltsexPipe(value){
    var temp ="";
    if(value == 'M'){
        temp = '男性'
    } else if(value == 'F'){
        temp = '女性'
    }
    return temp
}
export function fieldTypePipe(value){
    var temp ="";
    if(value == '1'){
        temp = '自然人'
    } else if(value == '2'){
        temp = '非自然人'
    }
    return temp
}

export function cerityPipe(value){
    var temp ="";
    if(value == '0'){
        temp = '漏填'
    } else if(value == '1'){
        temp = '身份证'
    } else if(value == '2') {
        temp = '护照'
    } else if(value == '3') {
        temp = '军官证'
    }else if(value == '4') {
        temp = '回乡证'
    }else if(value == '5') {
        temp = '其他证件'
    }else if(value == '6') {
        temp = '出生证'
    }else if(value == '7') {
        temp = '户口本'
    }else if(value == '8') {
        temp = '士兵证'
    }else if(value == '9') {
        temp = '台胞证'
    }else if(value == 'A') {
        temp = '外国人居住证'
    }else if(value == 'B') {
        temp = '港澳居民居住证'
    }else if(value == 'C') {
        temp = '台湾居民居住证'
    }else if(value == '21') {
        temp = '中华人民共和国组织机构代码证'
    }else if(value == '23') {
        temp = '企业法人营业执照'
    }else if(value == '24') {
        temp = '税务登记证'
    }else if(value == '25') {
        temp = '办学许可证'
    }else if(value == '26') {
        temp = '统一社会信用代码'
    }
    return temp
}
export function cltypePipe(value){
    var temp ="";
    if(value == 'OW'){
        temp = '投保人'
    } else if(value == 'SR'){
        temp = '被保险人'
    } else if(value == 'BN') {
        temp = '受益人'
    } else if(value == 'PC') {
        temp = '准客户'
    }else if(value == 'OH') {
        temp = '其他'
    }
    return temp
}

export function risklvlPipe(value){
    var temp ="";
    if(value == '0'){
        temp = '-'
    } else if(value == '1'){
        temp = 'I级欺诈风险事件'
    } else if(value == '2') {
        temp = 'II级欺诈风险事件'
    } else if(value == '3') {
        temp = 'III级欺诈风险事件'
    }
    return temp
}
export function flag01Pipe(value){
    var temp ="";
    if(value == '0'){
        temp = '2-核保'
    } else if(value == '1'){
        temp = '2-核保'
    } else if(value == '2') {
        temp = '2-核保'
    } else if(value == '5') {
        temp = '5-照会中'
    }else if(value == '6') {
        temp = '6-照会已回复待处理'
    }else if(value == '7') {
        temp = '7-送其它部门处理'
    }else if(value == '9') {
        temp = '9-结案'
    }else if(value == 'A') {
        temp = 'A-撤回'
    }else if(value == 'B') {
        temp = 'B-结案失败'
    }else if(value == 'C') {
        temp = 'C-照会逾期未回复'
    }else if(value == 'D') {
        temp = 'D-特殊件照会回复待'
    }
    return temp
}

export function aiTaskstatusPipe(value) {
	var temp ="";
	if(value == '1'){
	    temp = '任务待推送'
	} else if(value == '2'){
	    temp = '任务已推送'
	} else if(value == '3') {
	    temp = '任务已接收核保意见'
	} else if(value == '4') {
	    temp = '任务已取消'
	}
	return temp
}

export function aiTaskstatusNewPipe(value) {
	var temp ="";
	if(value == '1'){
	    temp = '任务待推送'
	} else if(value == '2'){
	    temp = '任务待推送' 
	} else if(value == '3') {
	    temp = '任务已推送'
	} else if(value == '4') {
	    temp = '任务已接收核保意见'
	}
	return temp
}